import React, {PureComponent} from "react"
import {Modal} from "antd"
import {appContext} from "../../context/app-context"


export default
@appContext
class AppModal extends PureComponent {
  render() {
    const {context, children, ...other} = this.props
    return <Modal {...other}>
      {children}
    </Modal>
  }
}